﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace aspZone.Commerce.Model
{
    public class Image
    {
        public Image()
        {
        }

        public Image(string fullsize, string thumbnail)
        {
            this.Fullsize = fullsize;
            this.Thumbnail = thumbnail;
        }

        public virtual string Thumbnail { get; private set; }
        public virtual string Fullsize { get; private set; }

        public override bool Equals(object obj)
        {
            if (obj is Image)
            {
                Image compareTo = (Image)obj;
                return this.Fullsize == compareTo.Fullsize && this.Thumbnail == compareTo.Thumbnail;
            }
            else
            {
                return base.Equals(obj);
            }

        }

    }
}
